#include <stdlib.h>
#include <strings.h>

#include "psd_channel.h"

psdChannel *psd_alloc_channel() {
	psdChannel *channel;

	channel = malloc(sizeof(psdChannel));
	if (!channel)
		goto error_exit;

	bzero(channel, sizeof(psdChannel));

	return channel;

error_exit:
	return NULL;
}

void psd_free_channel(psdChannel* channel) {
	free(channel);
}
